package com.siashan.toolkit.api.security;

/**
 * 常量类
 *
 * @author siashan
 * @since V1.0.1
 **/
public class CryptoConst {


    //-------------------------------请求参数-------------------------------

    /**
     * appId字段
     */
    public static final String FIELD_APPID = "appId";

    /**
     * sign字段
     */
    public static final String FIELD_SIGN = "sign";
    /**
     * 签名类型
     */
    public static final String FIELD_SIGN_TYPE = "signType";


    /**
     * 业务参数
     */
    public static final String FIELD_BIZ_CONTENT = "bizContent";


    /**
     * 随机数
     */
    public static final String FIELD_NONCE_STR = "nonceStr";
    /**
     * 时间戳
     */
    public static final String FIELD_TIME_STAMP = "timeStamp";


    //--------------------------------------编码方式------------------------------------------
    /**
     * UTF-8 编码
     */
    public static final String UTF8 = "UTF-8";

    //---------------------------------------加密方式-----------------------------------------
    /**
     * 签名类型：MD5
     */
    public static final String MD5 = "MD5";
    /**
     * 签名类型：HMACSHA256
     */
    public static final String HMACSHA256 = "HMACSHA256";

    //--------------------------------------存储位置----------------------------------------------
    /**
     * 签名存放位置(Header)
     */
    public static final String STORE_PATH_HEADER = "Header";
    /**
     * 签名存放位置（Body）
     */
    public static final String STORE_PATH_BODY = "Body";
}
